import request from '@/utils/request'

// 查询巡检分类列表
export function getinspectiontypeList (query) {
  return request({
    url: '/function/inspection/type/list',
    method: 'get',
    params: query
  })
}
// 新增巡检分类
export function Createdinspectiontype (query) {
  return request({
    url: '/function/inspection/type',
    method: 'post',
    data: query
  })
}
// 修改巡检分类
export function Updateinspectiontype (query) {
  return request({
    url: '/function/inspection/type',
    method: 'put',
    data: query
  })
}
// 修改巡检分类
export function deletedinspectiontype (query) {
  return request({
    url: '/function/inspection/type/' + query,
    method: 'delete',
  })
}

// 查询巡检项目列表
export function getinspectionprojectList (query) {
  return request({
    url: '/function/inspection/project/list',
    method: 'get',
    params: query
  })
}
// 新增巡检项目
export function Createdinspectionproject (query) {
  return request({
    url: '/function/inspection/project',
    method: 'post',
    data: query
  })
}
// 修改巡检项目
export function Updateinspectionproject (query) {
  return request({
    url: '/function/inspection/project',
    method: 'put',
    data: query
  })
}
// 删除巡检项目
export function deletedinspectionproject (query) {
  return request({
    url: '/function/inspection/project/' + query,
    method: 'delete',
  })
}
// 修改巡检项目状态
export function UpdateinspectionStatus (query) {
  return request({
    url: '/function/inspection/project/status',
    method: 'put',
    data: query
  })
}

// 查询提醒规则 定时信息
export function getruleList (query) {
  return request({
    url: '/function/remind/rule/timing/list',
    method: 'get',
    params: query
  })
}
// 查询提醒管理规则列表
export function getruleListSelect (query) {
  return request({
    url: '/function/remind/rule/list',
    method: 'get',
    params: query
  })
}
// 查询提醒管理记录列表
export function getremindList (query) {
  return request({
    url: '/function/remind/list',
    method: 'get',
    params: query
  })
}
//修改是否开启提醒
export function Updaterule (query) {
  return request({
    url: '/function/remind/rule',
    method: 'put',
    data: query
  })
}
//新增提醒管理规则
export function Createdrule (query) {
  return request({
    url: '/function/remind/rule',
    method: 'post',
    data: query
  })
}
//修改提醒管理记录
export function Updateremind (query) {
  return request({
    url: '/function/remind',
    method: 'put',
    data: query
  })
}
//新增提醒管理记录
export function Createdremind (query) {
  return request({
    url: '/function/remind',
    method: 'post',
    data: query
  })
}
// 查询是否开启提醒状态
export function getremindFlag (query) {
  return request({
    url: '/function/remind/rule/remindFlag',
    method: 'get',
    params: query
  })
}